package com.qf.fmmall.controller;

import com.qf.fmmall.service.UserAddrService;
import com.qf.fmmall.vo.ResultVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("useraddr")
@CrossOrigin
public class UserAddrController {

    @Autowired
    private UserAddrService userAddrService;

    @RequestMapping(value = "list",method = RequestMethod.GET)
    @ApiOperation("查询收货地址信息接口")
    public ResultVo list(Integer userId){
        return userAddrService.listaddrByUserId(userId);
    }


}
